package com.futu.common.enums;

public enum ApiServiceExceptionEnum implements BaseExceptionEnum{
	SUCCESS(1, "成功"),
	RESULT_SUCCES(1,"成功"),
   RESULT_ERROR(0,"失败"),
   Login_SUCCESS(1,"登录成功"),
   Login_ERROR(0,"登录失败"),
   REG_SUCCESS(1,"注册成功"),
   REG_ERROR(0,"注册失败"),
   ISEXISTS_ERROR(0,"已存在"),
   ISADD_ERROR(0,"已创建过"),
   APPLY_ERROR(0,"已报过名"),
   APPLY_TIME_ERROR(0,"已超时"),
   APPLY_NUM_ERROR(0,"报名已满"),
   USER_NOT_EXISTS(401,"用户不存在"), SYSTEM_ERROR(400,"系统异常" ), INSERT_ERROR(500,"插入异常" ), DATA_NOT_FOUND(500,"数据不存在" ), PARAM_ERROR(500,"参数错误" );





     ApiServiceExceptionEnum(Integer code , String message) {

    	 this.code=code;
    	 this.message=message;
    }
     private Integer code;

     private String message;

    @Override
	public Integer getCode() {
		// TODO Auto-generated method stub
		return code;
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

}
